package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.UserBackConfigDao;
import com.kly.user.db.entity.UserBackConfigEntity;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
* User: user
* Date: 2024-01-23
* Time: 11:13:08.131
*/

@Repository
public class UserBackConfigDaoImpl extends AbstractBaseMapper<UserBackConfigEntity> implements UserBackConfigDao {

    @Override
    public UserBackConfigEntity getUserBackByUserCode(String userCode) {

        Map<String, Object> params = Maps.newHashMap();
        params.put("userCode", userCode);
        return this.getSqlSession().selectOne(this.getStatement("getUserBackByUserCode"), params);
    }
}